<p id="notice"><%= notice %></p>

<table border="1">
<tr>
	<td colspan="5">
		<p><h4>Appointment's Detail</h4><p>
		<p>
		  <strong>Patient:</strong><%= @appointment.patient.full_name %></br>
		  <strong>Staff:</strong><%= @appointment.staff.full_name %></br>
		  <strong>Date:</strong><%= @appointment.date %></br>
		  <strong>Appointment status:</strong><%= @appointment.appointment_status.label %></br>
		  <strong>Registration method:</strong><%= @appointment.registration_method.label %></br>
		</p>
	</td>
</tr>
<tr><td colspan="5"><p></p></td></tr>
<tr>
	<td>
		<p><h4>Patient's Diagnoses</h4><p>
		<%= render @appointment.diagnoses %>
		<p>
			<%= link_to 'Add New Diagnosis', new_appointment_diagnosis_path(:appointment_id => params[:id]) %> 
		</p>
	</td>
<td><p></p></td>
	<td>
		<p><h4>Patient's Treatments</h4><p>
		<%= render @appointment.treatments %>
		<p> 
		<%= link_to 'Add New Treatment', new_appointment_treatment_path(:appointment_id => params[:id]) %> 
		</p>
	</td>
<td><p></p></td>
	<td>
		<p><h4>Patient's Prescription</h4><p>
		<%= render @appointment.prescriptions %>
		<p>
		<%= link_to 'Add New Prescription', new_appointment_prescription_path(:appointment_id => params[:id]) %> 
		</p>
	</td>
</tr>
</table>

<%= link_to 'Edit', edit_appointment_path(@appointment) %> |
<%= link_to 'Back', appointments_path %>

